import request from '@/utils/request'

// 查询漫画列表
export function listCaricature(query) {
  return request({
    url: '/type/caricature/list',
    method: 'get',
    params: query
  })
}

// 查询漫画详细
export function getCaricature(id) {
  return request({
    url: '/type/caricature/' + id,
    method: 'get'
  })
}

// 新增漫画
export function addCaricature(data) {
  return request({
    url: '/type/caricature',
    method: 'post',
    data: data
  })
}

// 修改漫画
export function updateCaricature(data) {
  return request({
    url: '/type/caricature',
    method: 'put',
    data: data
  })
}

// 删除漫画
export function delCaricature(id) {
  return request({
    url: '/type/caricature/' + id,
    method: 'delete'
  })
}
